package com.xhl.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xhl.dao.IReviewDao;
import com.xhl.vo.ReviewVO;

@Service
public class ReviewService implements IReviewDao {

    @Autowired
    IReviewDao iReviewDao;

    @Override
    public Long queryReviewSum(String pid) {
        return iReviewDao.queryReviewSum(pid);
    }

    @Override
    public void addComment(ReviewVO rvo) {
        iReviewDao.addComment(rvo);
    }

    @Override
    public List<ReviewVO> queryReviewPid(String pid) {
        return iReviewDao.queryReviewPid(pid);
    }

}
